-- GENERATED SPELL FOR [Mildred the Cruel] --


function spell0_29885(pUnit, Event) --@Mind Blast,n/a--
pUnit:FullCastSpellOnTarget(15587,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29885', 1500, 1)
end

function spell1_29885(pUnit, Event) --@Shadow Word: Death,n/a--
pUnit:FullCastSpellOnTarget(47697,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29885', 663, 1)
end

function spell2_29885(pUnit, Event) --@Shadow Word: Pain,n/a--
pUnit:FullCastSpellOnTarget(14032,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29885', 18000, 1)
end

function Sorts_29885(pUnit, Event)
local choix_sorts_29885 = math.random(0, 2)
if choix_sorts_29885 == 0 then
pUnit:RegisterEvent('spell0_29885', 1, 1)
end
if choix_sorts_29885 == 1 then
pUnit:RegisterEvent('spell1_29885', 1, 1)
end
if choix_sorts_29885 == 2 then
pUnit:RegisterEvent('spell2_29885', 1, 1)
end
end

function mob29885_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29885', math.random(1500, 3000), 1)
end

function mob29885_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29885_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29885_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29885, 1, 'mob29885_Action')
RegisterUnitEvent(29885, 2, 'mob29885_Leave')
RegisterUnitEvent(29885, 3, 'mob29885_Kill')
RegisterUnitEvent(29885, 4, 'mob29885_Die')
